package com.tiyo.framework.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
/**
 * 
 * @Description MyBatisPlus配置类
 * @author yangb
 * @version v1.0
 * @date 2021年1月21日
*
 */
@Configuration
@MapperScan({"com.tiyo.*.mapper"})
public class MyBatisPlusConfig {
	@Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
